package com.hsc.mvc.tag;

/**
 * @author
 * @date 2025-06-04
 * @Description 类型转换器标签对应的对象信息
 */
public class ConvertorTag {

    private String classStr;

    private Class convertorClass;

    public String getClassStr() {
        return classStr;
    }

    public void setClassStr(String classStr) {
        this.classStr = classStr;
        if (classStr != null) {
            try {
                Class<?> aClass = Class.forName(classStr);
                setConvertorClass(aClass);
            } catch (ClassNotFoundException e) {
                throw new RuntimeException(e);
            }
        }
    }

    public Class getConvertorClass() {
        return convertorClass;
    }

    public void setConvertorClass(Class convertorClass) {
        this.convertorClass = convertorClass;
    }
}
